package model

import business.Attackable
import business.Blockable
import business.Sufferable
import org.itheima.kotlin.game.core.Painter

class Steel(i: Int,j: Int):Blockable,Sufferable {
    override fun notifySuffer(attack: Attackable): Array<IView> {
        return arrayOf(Blast(x,y))
    }

    override var blood=100
    override var width: Int=Config.block
    override var height: Int=Config.block
    override var x: Int=width*j
    override var y: Int=height*i
    override public fun draw(){
        Painter.drawImage("img/steel.gif",x,y)
    }
}